//配置数据的结构
const { Schema, model } = require('mongoose');
const parkingSpaceSchema = new Schema({
    community_id: {
        type:Schema.Types.ObjectId,
        ref:"communityModel"
    },//小区
    carportNumber: String,//编号
    parkingSpaceArea:String,//面积
    parkingSpaceType:String,//类型
    parkingSpaceState:String,//状态
}, { versionKey: false });
//配置数据模型
const parkingSpaceModel = model('parkingSpaceModel', parkingSpaceSchema, 'parkingSpace');

//把配置的数据模型暴露出去
module.exports={
    parkingSpaceModel
}